package com.lyw.gulimall.product.vo.front;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

// 二级分类 VO
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Catalog2Vo {

    private Long catalog1Id; // 当前分类的父 id
    private List<Catalog3Vo> catalog3List; // 当前分类的子分类
    private Long id; // 当前分类的 id
    private String name; // 当前分类 name

    // 三级分类 VO
    @Data
    @Builder
    @AllArgsConstructor
    @NoArgsConstructor
    public static class Catalog3Vo {

        private Long catalog2Id;
        private Long id;
        private String name;
    }
}



